package com.pic.others.constants.user;

import java.time.Duration;

public interface UserConstants {
    String DEFAULT_PASSWORD = "123456";

    Long USER_ROLE_ID=2L;
    String USER_ROLE_NAME="用户";

    Long ADMIN_ROLE_ID=3L;
    String ADMIN_ROLE_NAME="管理员";

    //注册验证码的redis key前缀
    String USER_VERIFY_CODE_KEY_LOGIN = "sms:user:code:email:login:";

    //登录注册码的redis key前缀
    String USER_VERIFY_CODE_KEY_REGISTER= "sms:user:code:email:login:register:";
    //验证码有效期，5min
    Duration USER_VERIFY_CODE_TTL = Duration.ofMinutes(5);

    Boolean ISVIP=true;
    Boolean NOVIP=false;

    int VIP_CAPACITY=20;
    int NOVIP_CAPACITY =5;
}
